package com.caius.framework.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Caius
 * @description
 * @since Created in 2025-05-07
 */
@Getter
@Setter
public class BizException extends RuntimeException{

    private String errorCode;

    private String errorMessage;

    public BizException(BaseExceptionInterface baseExceptionInterface) {
        this.errorCode = baseExceptionInterface.getErrorCode();
        this.errorMessage = baseExceptionInterface.getErrorMessage();
    }
}
